package com.tedu.drugs.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class DrugsParam {
    @ApiModelProperty(value = "药品ID")
    private Long medicineId;
    @ApiModelProperty(value = "药品名称")
    private String name;
    @ApiModelProperty(value = "药品描述")
    private String description;
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
    @ApiModelProperty(value = "库存")
    private Long stock;
    @ApiModelProperty(value = "类别")
    private String category;
    @ApiModelProperty(value = "图片链接")
    private String imageUrl;
    @ApiModelProperty(value = "供应商")
    private String supplier;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
